/*
 * @Descripttion:
 * @version:
 * @Date: 2021-04-20 11:06:21
 * @LastEditors: CodeMe@126.com
 * @LastEditTime: 2022-09-24 19:27:21
 * @Author: CodeMe@126.com
 * @HomePage: https://CodeMe.gitee.io/vue3-element-admin
 * @Github: https://github.com/CodeMe/vue3-element-admin
 * @Donate: https://CodeMe.gitee.io/vue3-element-admin/donate/
 */
// home.js
const Layout = () => import('@/layout/index.vue')
const orderList = () => import('@/views/order_list/index.vue')
const Home = () => import('@/views/home/index.vue')
const refundOrder = () => import('@/views/refund_order/index.vue')
const abnormalOrder = () => import('@/views/abnormal_order/index.vue')
const deviceList = () => import('@/views/device_list/index.vue')
const deviceWarehouse = () => import('@/views/device_warehouse/index.vue')
const storeManagement = () => import('@/views/store_management/index.vue')
const chargingManagement = () => import('@/views/charging_management/index.vue')
const couponManagement = () => import('@/views/coupon_management/index.vue')
const withdrawManagement = () => import('@/views/withdraw_management/index.vue')
const buyOut = () => import('@/views/buy_out/index.vue')
const allyList = () => import('@/views/ally_list/index.vue')
const customerManagement = () => import('@/views/customer_management/index.vue')
const vipManagement = () => import('@/views/vip_management/index.vue')
const storeManManagement = () => import('@/views/store_man_management/index.vue')
const serviceManagement = () => import('@/views/service_management/index.vue')
const roleManagement = () => import('@/views/role_management/index.vue')
const jurisdictionManagement = () => import('@/views/jurisdiction_management/index.vue')

export default [
  {
    path: '/',
    component: Layout,
    name: '',
    meta: {
      title: '首页',
    },
    icon: 'icon-shouye',
    children: [
      {
        path: '/home',
        name: '',
        component: Home,
        meta: {
          title: '',
          affix: true,
        },
      },
    ],
  },
  // 订单
  {
    path: '/order',
    component: Layout,
    name: '',
    meta: {
      title: '订单管理',
    },
    icon: 'icon-dingdan',
    children: [
      {
        path: '/order/list',
        name: '',
        component: orderList,
        meta: {
          title: '订单列表',
          affix: true,
        },
      },
      {
        path: '/refund_order/list',
        name: '',
        component: refundOrder,
        meta: {
          title: '退款订单',
          affix: true,
        },
      },
      {
        path: '/abnormal_order/list',
        name: '',
        component: abnormalOrder,
        meta: {
          title: '异常订单',
          affix: true,
        },
      },
    ],
  },
  // 设备
  {
    path: '/device',
    component: Layout,
    name: '',
    meta: {
      title: '设备管理',
    },
    icon: 'icon-shebei',
    children: [
      {
        path: '/device_list/list',
        name: '',
        component: deviceList,
        meta: {
          title: '设备列表',
          affix: true,
        },
      },
      {
        path: '/device_warehouse/list',
        name: '',
        component: deviceWarehouse,
        meta: {
          title: '仓库设备',
          affix: true,
        },
      }
    ],
  },
  // 店铺管理
  {
    path: '/store_management',
    component: Layout,
    name: '',
    meta: {
      title: '店铺管理',
    },
    icon: 'icon-guanli',
    children: [
      {
        path: '/store_management/list',
        name: '',
        component: storeManagement,
        meta: {
          title: '店铺列表',
          affix: true,
        },
      },
    ],
  },
  // 计费管理
  {
    path: '/charging_management',
    component: Layout,
    name: '',
    meta: {
      title: '计费管理',
    },
    icon: 'icon-jifei',
    children: [
      {
        path: '/charging_management/list',
        name: '',
        component: chargingManagement,
        meta: {
          title: '计费管理',
          affix: true,
        },
      },
    ],
  },
  // 优惠券管理
  {
    path: '/coupon_management',
    component: Layout,
    name: '',
    meta: {
      title: '优惠券管理',
    },
    icon: 'icon-youhuiquan',
    children: [
      {
        path: '/coupon_management/list',
        name: '',
        component: couponManagement,
        meta: {
          title: '优惠券管理',
          affix: true,
        },
      },
    ],
  },
  // 提现管理
  {
    path: '/withdraw_management',
    component: Layout,
    name: '',
    meta: {
      title: '提现管理',
    },
    icon: 'icon-tixian',
    children: [
      {
        path: '/withdraw_management/list',
        name: '',
        component: withdrawManagement,
        meta: {
          title: '提现管理',
          affix: true,
        },
      },
    ],
  },
  // 小宝买断
  {
    path: '/buy_out',
    component: Layout,
    name: '',
    meta: {
      title: '小宝买断',
    },
    icon: 'icon-maiduan',
    children: [
      {
        path: '/buy_out/list',
        name: '',
        component: buyOut,
        meta: {
          title: '小宝买断',
          affix: true,
        },
      },
    ],
  },
  // 用户管理
  {
    path: '/user',
    component: Layout,
    name: '',
    meta: {
      title: '用户管理',
    },
    icon: 'icon-yonghu',
    children: [
      {
        path: '/ally_list/list',
        name: '',
        component: allyList,
        meta: {
          title: '盟友列表',
          affix: true,
        },
      },
      {
        path: '/customer_management/list',
        name: '',
        component: customerManagement,
        meta: {
          title: '客户列表',
          affix: true,
        },
      },
      {
        path: '/vip_management/list',
        name: '',
        component: vipManagement,
        meta: {
          title: '会员列表',
          affix: true,
        },
      },
      {
        path: '/store_man_management/list',
        name: '',
        component: storeManManagement,
        meta: {
          title: '商家列表',
          affix: true,
        },
      },
    ],
  },
  // 系统管理
  {
    path: '/system',
    component: Layout,
    name: '',
    meta: {
      title: '系统管理',
    },
    icon: 'icon-xitong',
    children: [
      {
        path: '/role_management/list',
        name: '',
        component: roleManagement,
        meta: {
          title: '角色管理',
          affix: true,
        },
      },
      {
        path: '/jurisdiction_management/list',
        name: '',
        component: jurisdictionManagement,
        meta: {
          title: '权限管理',
          affix: true,
        },
      },
      {
        path: '/service_management/list',
        name: '',
        component: serviceManagement,
        meta: {
          title: '联系客服',
          affix: true,
        },
      },
    ],
  },
]
